|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
Not always do
you want to perform a sequential set of statements. In
|
|
order to
control when the statements perform, control structures
|
|
|
are used.
|
|
|
|
Conditional
statement:
|
|
 |
|
|
|
|
|
|
n |
if … else
|
|
|
|
Selection
statement:
|
|
 |
|
|
|
|
|
|
n |
switch …
|
|
|
|
Iterative
statements:
|
|
 |
|
|
|
|
|
|
n |
for, continue,
break
|
|
|
|
n |
while and do ….
While
|
|
|
|
goto
statement
|
|
 |
|
|
|
|
|
|